package com.itheima.ssm.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptPasswordEncoderUtils {
    private static BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
    public static String EncoderPasswor(String password){
        return passwordEncoder.encode(password);
    }

    public static void main(String[] args) {
        String ps = "123";
        String encode = passwordEncoder.encode(ps);
        System.out.println(encode);
    }
}
